package it.demosms.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import it.demosms.service.impl.SendSmsServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api("季鑫利:短信发送")
public class SendSmsController {

    /**
     * 短信发送接口实现
     *
     * @author 季鑫利
     */
    @Autowired
    private SendSmsServiceImpl sendSmsService;


    @GetMapping("sandSms")
    @ApiOperation("季鑫利:发送短信")
    public void sendSms(String phone) {
        sendSmsService.sendSms(phone);
    }

}
